//
//  OrderGetAddressCell.m
//  WuJieLive
//
//  Created by iMac on 2017/12/19.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "OrderGetAddressCell.h"

@implementation OrderGetAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)bindDataWithModel:(AddressModel *)model
{
    self.nameLabel.text = [NSString stringWithFormat:@"%@(%@)",model.consignee,model.telephone];
    if (model.is_default == 1) {
        self.defaultBtn.hidden = NO;
    }else{
        self.defaultBtn.hidden = YES;
    }
    self.addressLabel.text = [NSString stringWithFormat:@"%@%@",model.region_name,model.detail_address];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
